<div class="wms-layer layui-form">
    <table class="wms-bd-none">
        <tr>
            <td>借用人姓名</td>
            <td><input type="text" class="layui-input" ng-model="addObj.bcBorrowName"></td>
            <td>借用部门</td>
            <td><input type="text" class="layui-input" ng-model="addObj.bcBorrowDepartment"></td>
            <td>联系电话</td>
            <td><input type="text" class="layui-input" ng-model="addObj.bcBorrowTel"></td>
        </tr>
        <tr>
            <td>借用日期</td>
            <td>
                <input type="text" lay-verify="date" placeholder="yyyy-mm-dd" ng-model="addObj.bcBorrowDate" ng-click="Tools.modelAssignment($event,this)" autocomplete="off" class="layui-input" onclick="layui.laydate({elem: this,format:'YYYY-MM-DD',choose : angular.element(this).scope().Tools.modelAssignment,scope:angular.element(this).scope()})">
            </td>
            <td>预计还车日期</td>
            <td>
                <input type="text" lay-verify="date" placeholder="yyyy-mm-dd" ng-model="addObj.bcEstimatedReturnDate" ng-click="Tools.modelAssignment($event,this)" autocomplete="off" class="layui-input" onclick="layui.laydate({elem: this,format:'YYYY-MM-DD',choose : angular.element(this).scope().Tools.modelAssignment,scope:angular.element(this).scope()})">
            </td>
            <td>借用原因</td>
            <td><input type="text" class="layui-input" ng-model="addObj.bcBorrowReason"></td>
        </tr>
    </table>
    <blockquote class="layui-elem-quote" style="margin-top: 5px">
        <span class="wms-icon" ng-click="addCar()" >
            <i class="layui-icon">&#xe654;</i>添加
        </span>
        <span class="wms-icon" style="margin-left: 8px" ng-click="delCar()">
            <i class="layui-icon">&#xe640;</i>删除
        </span>
    </blockquote>
    <table class="wmsCarInfo" style="margin-bottom: 10px">
        <tr class="wms-layer-heard">
            <th style="width: 42px"><input type="checkbox" lay-skin="primary" lay-filter="allChoose"></th>
            <th>车架号</th>
            <th>车系</th>
            <th>车型</th>
            <th>车颜色</th>
            <th>借用数量</th>
        </tr>
        <tr ng-repeat="(key,item) in addObj.wmsBorrowCarDetailList" repeat-finish>
            <td style="padding: 3px 0" index="{{key}}"><input type="checkbox" lay-skin="primary" lay-filter="test"></td>
            <td>{{item.bdVin}}</td>
            <td>{{item.bdCarSeries}}</td>
            <td>{{item.bdCarSpecname}}</td>
            <td>{{item.bdCarColorname}}</td>
            <td>{{item.num}}</td>
        </tr>
        <tr class="wms-layer-add-tr" ng-show="addbcrInfo">
            <td><input type="checkbox" lay-skin="primary" lay-filter="test"></td>
            <td><input type="text" class="layui-input" ng-model="wmsTemp.bdVin"></td>
            <td><input type="text" class="layui-input" ng-model="wmsTemp.bdCarSeries"></td>
            <td><input type="text" class="layui-input" ng-model="wmsTemp.bdCarSpecname"></td>
            <td><input type="text" class="layui-input" ng-model="wmsTemp.bdCarColorname"></td>
            <td><input type="text" onkeyup="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}" onafterpaste="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}" class="layui-input" ng-model="wmsTemp.num"></td>
        </tr>
    </table>
    <p style="color:red;font-size: 12px;">注:车架号或(车系，车型，车颜色，借用数量) 至少填一组</p>
    <span>上传凭证</span>
    <div class="bcr-add-image" ng-click="uploadImgs();">
        <input type="file" ng-if="brcFlag" style=" opacity: 0; filter:Alpha(opacity=0); height: 127px;width: 170px;" nv-file-select="" uploader="uploaderBRC" fileter="filterName">
    </div>
    <div class="wms-layer-btn">
        <div style="float:right">
            <button class="layui-btn" ng-click="addSave()" ng-show="addFlag">保存</button>
            <button class="layui-btn" ng-click="saveEdite()" ng-show="!addFlag">保存编辑</button>
            <button class="layui-btn" ng-click="bcClose()">关闭</button>
        </div>

    </div>
</div>